module.exports = {
    //配置跨域
    lintOnSave: false,
    devServer: {
        host: "localhost",
        port: 8080, // 端口号
        https: false, // https:{type:Boolean}
        proxy: {
            '/api': { //代理api
                 target: 'http://10.3.35.247:8081/',//服务器api地址
                ws: true,// proxy websockets
                changeOrigin: true,//是否跨域
                pathRewrite: { //重写路径
                    '^/api': '/api'
                }
            }
        }
    },
    productionSourceMap:false,
    publicPath: './',

    configureWebpack: {
        resolve: {
            alias: {
                'components': '@/components',
                'assets': '@/assets',
                'network': '@/request',
                'views': '@/views',
            }
        }
    }
}
